﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/TemplateAdmin.Master" 
AutoEventWireup="true" CodeBehind="NewsManager.aspx.cs" Inherits="ProjectSem3.admin.WebForm10" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="message message-success" runat="server" id="mesage_success" visible="false"
        style="height: 40px; margin: 0 0 0 50px;">
        <p style="font-size: 14px; color: Red;">
            Delete Successful
        </p>
        <asp:LinkButton OnClick="LinkButton1_Click" ID="LinkButton1" runat="server" title="Close this message"
            class="close icon icon_close tooltip"></asp:LinkButton>
    </div>
    <div class="message message-error" runat="server" id="message_error" visible="false"
        style="height: 40px; margin: 0 0 0 50px;">
        <p style="font-size: 14px; color: Red;">
            You can not delete because there are related data</p>
        <asp:LinkButton OnClick="LinkButton1_Click" ID="LinkButton2" runat="server" title="Close this message"
            class="close icon icon_close tooltip"></asp:LinkButton>
    </div>
    <div class="hastable">
        <form name="myform" class="pager-form" method="post" action="#">
        <table id="sort-table">
            <thead>
                <tr>
                    <th>
                        Title
                    </th>
                    <th>
                        Content
                    </th>
                    <th>
                        Delete
                    </th>
                    <th>
                        Update
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# Eval("title")%>
                            </td>
                            <td>
                                <%# Eval("content")%>
                            </td>
                            <td>
                                <asp:HiddenField ID="HiddenFieldNews" runat="server" Value='<%# Eval("articalID") %>' />
                                <asp:LinkButton ID="LinkButtonDelete" runat="server" OnClientClick="return confirm('Are you sure?')"
                                    OnClick="LinkButtonXoa_Click">Delete</asp:LinkButton>
                            </td>
                            <td>
                                <a href="UpdateNews.aspx?id=<%# Eval("articalID") %>">Update</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div id="pager" style="margin: -10px 0 25px 235px; height: 86px;">
            <a class="btn_no_text btn ui-state-default ui-corner-all first" title="First Page"
                href="#"><span class="ui-icon ui-icon-arrowthickstop-1-w"></span></a><a class="btn_no_text btn ui-state-default ui-corner-all prev"
                    title="Previous Page" href="#"><span class="ui-icon ui-icon-circle-arrow-w"></span>
                </a>
            <input type="text" class="pagedisplay" />
            <a class="" title="Next Page"
                href="#"><span class="ui-icon ui-icon-circle-arrow-e"></span></a><a class="btn_no_text btn ui-state-default ui-corner-all last"
                    title="Last Page" href="#"><span class="ui-icon ui-icon-arrowthickstop-1-e"></span>
                </a>
            <select class="pagezise">
                <option value="2" selected="selected">2 results</option>
                <option value="4">4 results</option>
                <option value="6">6 results</option>
                <option value="8">8 results</option>
            </select>
        </div>
        </form>
    </div>
</asp:Content>
